package com.j180.filter;

import javax.servlet.*;
import java.io.IOException;

public class MyEncodingFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
//        servletResponse.setCharacterEncoding("UTF-8");
//        servletResponse.setContentType("text/html;charset=UTF-8");
//        servletRequest.setCharacterEncoding("utf-8");
//        doFilter(servletRequest, servletResponse, filterChain);
    }
}
